package com.shsh.safemanage.model;

import java.util.Calendar;

public class Defect extends Problem {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4971480663743302432L;
	private Integer defectTypeID;
	private String defectType;
	private String loss;
	private String reason;
	private String duty;
	private String team;
	private Calendar defectTime;
	private Calendar defectWriteTime;
	private Long defectWriteUserID;

	public Defect() {

	}

	public Long getDefectWriteUserID() {
		return defectWriteUserID == null ? getWriteUserID() : defectWriteUserID;
	}

	public void setDefectWriteUserID(Long defectWriteUserID) {
		this.defectWriteUserID = defectWriteUserID;
	}

	public Calendar getDefectWriteTime() {
		return defectWriteTime == null ? getWriteTime() : defectWriteTime;
	}

	public void setDefectWriteTime(Calendar defectWriteTime) {
		this.defectWriteTime = defectWriteTime;
	}

	public Calendar getDefectTime() {
		return defectTime == null ? getWriteTime() : defectTime;
	}

	public void setDefectTime(Calendar defectTime) {
		this.defectTime = defectTime;
	}

	public Defect(Problem problem) {
		super(problem);
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public String getTeam() {
		return team;
	}

	public void setTeam(String team) {
		this.team = team;
	}

	public String getLoss() {
		return loss;
	}

	public void setLoss(String loss) {
		this.loss = loss;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Integer getDefectTypeID() {
		return defectTypeID;
	}

	public void setDefectTypeID(Integer defectTypeID) {
		this.defectTypeID = defectTypeID;
	}

	public String getDefectType() {
		return defectType;
	}

	public void setDefectType(String defectType) {
		this.defectType = defectType;
	}
}
